SHELL = /bin/sh
VPATH = @srcdir@

subdirs = @subdirs@
top_srcdir = @top_srcdir@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
infodir = $(prefix)/info
libdir = $(prefix)/lib/gnudl
mandir = $(prefix)/man/man1

CC = @CC@
CPPFLAGS = @CPPFLAGS@
CFLAGS = $(CPPFLAGS) @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
INSTALL = @INSTALL@
YACC = @YACC@
LEX = @LEX@


../build/latexcalc: parser.y lexer.l latex_math.* main.* varTable.*
	- $(YACC) -d -v parser.y
	- $(LEX) lexer.l
	$(CC) -g -Wall -std=c99 main.c varTable.c latex_math.c lex.yy.c y.tab.c -o ../build/latexcalc $(LIBS) -D_POSIX_SOURCE

clean:
	rm y.tab.c y.tab.h lex.yy.c y.output ../build/*

rebuild: clean all

